package patterns.protoType.main;

import java.io.IOException;

import patterns.protoType.core.ProtoType;


public class Test {
	public static void main(String[] args) throws CloneNotSupportedException, ClassNotFoundException, IOException {
		ProtoType protoType = new ProtoType();
		protoType.setString("clone or deep clone????");
		
		ProtoType cloneObject = (ProtoType) protoType.clone();
		ProtoType deepCloneObject = (ProtoType) protoType.deepClone();
		System.out.println(protoType.getString()==cloneObject.getString());
		System.out.println(protoType.getString()==deepCloneObject.getString());
	}
}
